package StudentCourse;

public class Person {
    private String id;
    private String name;
    private String sex;
    private String courseBehavior;

    public Person(String id, String name, String sex, String courseBehavior) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.courseBehavior = courseBehavior;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCourseSelect() {
        return courseBehavior;
    }

    public void setCourseSelect(String courseSelect) {
        this.courseBehavior = courseSelect;
    }

    // 定义业务方法：打印工作/课表（由子类实现）
    public void printSchedule() {
        System.out.println("[" + getClass().getSimpleName() + "] " + name + " 的课表：");
    }
}
